package com.ffs.persist;

import com.ffs.persist.jdbc.RowMapper;

/**
 * 持久化工厂
 *
 * @author ffs80
 * @date 2022/4/9 10:08
 */
public interface IPersistFactory {

    /**
     * 获取sql构建器
     */
    <T extends PersistTable> SqlBuilder<T> findSqlBuilder(Class<T> clazz);

    /**
     * 获取数据映射
     */
    <T extends PersistTable> RowMapper<T> rowMapper(Class<T> clazz);
}
